package com.home.security.core.constants;

/**
 * Description:
 * Created by 王大宸 on 2021-01-18 15:17
 * Created with IntelliJ IDEA.
 */
public class ShiroConstant {

    /**
     * shiro 缓存 前缀
     */
    public final static String CACHE_KEY = "SHIRO:CACHE:";

    /**
     * session 缓存 前缀
     */
    public final static String SESSION_KEY = "SHIRO:SESSION:";

    /**
     * 有效时间 : 5小时
     */
    public final static int EXPIRE = 18000;

    /**
     * 登录地址
     */
    public final static String LOGIN_URL = "login";

    /**
     * 登录成功之后的地址
     */
    public final static String SUCCESSFUL_URL = "/index";

    /**
     * 没有权限跳转地址
     */
    public final static String UN_AUTH_URL = "/error/401";

}
